package com.yidiandao.business.data.response;

import com.google.gson.annotations.SerializedName;
import com.yidiandao.business.data.net.BaseResponse;

import java.util.List;

/**
 * 发布的求购数据
 * <p>
 * Created by SunDing(dindding@163.com) on 2017/5/26 14:13
 */
public class PostedWantToBuyResponse extends BaseResponse {

    @SerializedName("data")
    private DataBean data;

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        @SerializedName("want_id")
        private String wantId;
        @SerializedName("desc")
        private String desc;
        @SerializedName("city_id")
        private String cityId;
        @SerializedName("area_id")
        private String areaId;
        @SerializedName("number")
        private String number;
        @SerializedName("unit")
        private String unit;
        @SerializedName("province_id")
        private String provinceId;
        @SerializedName("province_name")
        private String provinceName;
        @SerializedName("city_name")
        private String cityName;
        @SerializedName("area_name")
        private String areaName;
        /**
         * picture_id : 1217
         * thumb : https://dev.yidiandao.com/images/want_buy/2017/05/3e71b276f7ca5642b26e9e137d6fa50a_thumb.jpg
         */

        @SerializedName("pictures")
        private List<PicturesBean> pictures;

        public String getWantId() {
            return wantId;
        }

        public void setWantId(String wantId) {
            this.wantId = wantId;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }

        public String getCityId() {
            return cityId;
        }

        public void setCityId(String cityId) {
            this.cityId = cityId;
        }

        public String getAreaId() {
            return areaId;
        }

        public void setAreaId(String areaId) {
            this.areaId = areaId;
        }

        public String getNumber() {
            return number;
        }

        public void setNumber(String number) {
            this.number = number;
        }

        public String getUnit() {
            return unit;
        }

        public void setUnit(String unit) {
            this.unit = unit;
        }

        public String getProvinceId() {
            return provinceId;
        }

        public void setProvinceId(String provinceId) {
            this.provinceId = provinceId;
        }

        public String getProvinceName() {
            return provinceName;
        }

        public void setProvinceName(String provinceName) {
            this.provinceName = provinceName;
        }

        public String getCityName() {
            return cityName;
        }

        public void setCityName(String cityName) {
            this.cityName = cityName;
        }

        public String getAreaName() {
            return areaName;
        }

        public void setAreaName(String areaName) {
            this.areaName = areaName;
        }

        public List<PicturesBean> getPictures() {
            return pictures;
        }

        public void setPictures(List<PicturesBean> pictures) {
            this.pictures = pictures;
        }

        public static class PicturesBean {
            @SerializedName("picture_id")
            private String pictureId;
            @SerializedName("thumb")
            private String thumb;

            public String getPictureId() {
                return pictureId;
            }

            public void setPictureId(String pictureId) {
                this.pictureId = pictureId;
            }

            public String getThumb() {
                return thumb;
            }

            public void setThumb(String thumb) {
                this.thumb = thumb;
            }
        }
    }
}
